﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional

namespace ST.Torch.WebApi.Database.Migrations.Migrations
{
    /// <inheritdoc />
    public partial class InitialCreate : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "AutomaticCodeGeneration",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    InputStr = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
                    User1ImgUrl = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
                    User2ImgUrl = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
                    User1FileUrl = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
                    User2FileUrl = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
                    Content1Html = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Content2Html = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    SelectVal = table.Column<int>(type: "int", nullable: false),
                    StartType = table.Column<int>(type: "int", nullable: false),
                    NumberVal1 = table.Column<int>(type: "int", nullable: false),
                    NumberVal2 = table.Column<int>(type: "int", nullable: false),
                    IsShow1 = table.Column<bool>(type: "bit", nullable: false),
                    IsShow2 = table.Column<bool>(type: "bit", nullable: false),
                    XXTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_AutomaticCodeGeneration", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "D_TiMu",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    topic = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
                    optionA = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
                    optionB = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
                    optionC = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
                    optionD = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
                    CorrectOpt = table.Column<int>(type: "int", nullable: false),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_D_TiMu", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "FormData",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    Title = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    ImgUrl = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    City = table.Column<int>(type: "int", nullable: false),
                    Like = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Switch = table.Column<bool>(type: "bit", nullable: false),
                    Sex = table.Column<int>(type: "int", nullable: false),
                    Desc = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    DescTinymce = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_FormData", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "SYSMenu",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    Title = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
                    Icon = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
                    Href = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
                    OpenType = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
                    Type = table.Column<int>(type: "int", nullable: false),
                    IsHide = table.Column<bool>(type: "bit", nullable: false),
                    ParentId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    CascadeId = table.Column<string>(type: "varchar(1000)", nullable: true),
                    PermissionId = table.Column<string>(type: "varchar(100)", nullable: true),
                    Sort = table.Column<int>(type: "int", nullable: false),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    IsDeleted = table.Column<bool>(type: "bit", nullable: false),
                    DeleteTime = table.Column<DateTime>(type: "datetime2", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_SYSMenu", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "SYSRole",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    Name = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
                    RoleCode = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    IsDeleted = table.Column<bool>(type: "bit", nullable: false),
                    DeleteTime = table.Column<DateTime>(type: "datetime2", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_SYSRole", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "SYSUser",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    Account = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
                    Password = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
                    NickName = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
                    Img = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
                    Sex = table.Column<int>(type: "int", nullable: false),
                    Contact = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
                    IsEnable = table.Column<bool>(type: "bit", nullable: false),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    IsDeleted = table.Column<bool>(type: "bit", nullable: false),
                    DeleteTime = table.Column<DateTime>(type: "datetime2", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_SYSUser", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "UtilExcel",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    Column1 = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
                    Column2 = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
                    Column3 = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
                    Column4 = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
                    Column5 = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_UtilExcel", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "SYSRoleMenu",
                columns: table => new
                {
                    MenusId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    RolesId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_SYSRoleMenu", x => new { x.MenusId, x.RolesId });
                    table.ForeignKey(
                        name: "FK_SYSRoleMenu_SYSMenu_MenusId",
                        column: x => x.MenusId,
                        principalTable: "SYSMenu",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                    table.ForeignKey(
                        name: "FK_SYSRoleMenu_SYSRole_RolesId",
                        column: x => x.RolesId,
                        principalTable: "SYSRole",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "SYSRoleUser",
                columns: table => new
                {
                    RolesId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    UsersId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_SYSRoleUser", x => new { x.RolesId, x.UsersId });
                    table.ForeignKey(
                        name: "FK_SYSRoleUser_SYSRole_RolesId",
                        column: x => x.RolesId,
                        principalTable: "SYSRole",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                    table.ForeignKey(
                        name: "FK_SYSRoleUser_SYSUser_UsersId",
                        column: x => x.UsersId,
                        principalTable: "SYSUser",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.InsertData(
                table: "SYSMenu",
                columns: new[] { "Id", "CascadeId", "CreateTime", "DeleteTime", "Href", "Icon", "IsDeleted", "IsHide", "OpenType", "ParentId", "PermissionId", "Sort", "Title", "Type", "UpdateTime" },
                values: new object[,]
                {
                    { new Guid("08dd5abf-0c47-41ec-8a9c-9faa13b0bc7f"), "08dd5abf-0c47-41ec-8a9c-9faa13b0bc7f", new DateTime(2025, 3, 4, 9, 51, 14, 771, DateTimeKind.Local).AddTicks(9379), null, "/", "layui-icon layui-icon-console", false, false, "_component", new Guid("00000000-0000-0000-0000-000000000000"), "SystemMenu", 0, "系统配置", 0, new DateTime(2025, 3, 4, 9, 51, 14, 771, DateTimeKind.Local).AddTicks(9388) },
                    { new Guid("08dd5abf-0c54-4cf4-8d49-c1c11e39ce85"), "08dd5abf-0c47-41ec-8a9c-9faa13b0bc7f.08dd5abf-0c54-4cf4-8d49-c1c11e39ce85", new DateTime(2025, 3, 4, 9, 51, 14, 861, DateTimeKind.Local).AddTicks(6543), null, "/SYS/Menu/Index", "layui-icon layui-icon-console", false, false, "_component", new Guid("08dd5abf-0c47-41ec-8a9c-9faa13b0bc7f"), "MenuPage", 1, "菜单", 1, new DateTime(2025, 3, 4, 9, 51, 14, 861, DateTimeKind.Local).AddTicks(6558) },
                    { new Guid("08dd5abf-0c54-4d94-8ca1-fd1148552f71"), "08dd5abf-0c47-41ec-8a9c-9faa13b0bc7f.08dd5abf-0c54-4cf4-8d49-c1c11e39ce85.08dd5abf-0c54-4d94-8ca1-fd1148552f71", new DateTime(2025, 3, 4, 9, 51, 14, 861, DateTimeKind.Local).AddTicks(9087), null, "-", "layui-icon layui-icon-console", false, false, "_component", new Guid("08dd5abf-0c54-4cf4-8d49-c1c11e39ce85"), "AddMenuPage", 1, "添加菜单", 2, new DateTime(2025, 3, 4, 9, 51, 14, 861, DateTimeKind.Local).AddTicks(9090) },
                    { new Guid("08dd5abf-0c54-4dee-839f-7f265ae20cc4"), "08dd5abf-0c47-41ec-8a9c-9faa13b0bc7f.08dd5abf-0c54-4cf4-8d49-c1c11e39ce85.08dd5abf-0c54-4dee-839f-7f265ae20cc4", new DateTime(2025, 3, 4, 9, 51, 14, 862, DateTimeKind.Local).AddTicks(516), null, "-", "layui-icon layui-icon-console", false, false, "_component", new Guid("08dd5abf-0c54-4cf4-8d49-c1c11e39ce85"), "DelMenuPage", 1, "删除菜单", 2, new DateTime(2025, 3, 4, 9, 51, 14, 862, DateTimeKind.Local).AddTicks(516) },
                    { new Guid("08dd5abf-0c54-4e44-8d4b-cefef0e755a1"), "08dd5abf-0c47-41ec-8a9c-9faa13b0bc7f.08dd5abf-0c54-4cf4-8d49-c1c11e39ce85.08dd5abf-0c54-4e44-8d4b-cefef0e755a1", new DateTime(2025, 3, 4, 9, 51, 14, 862, DateTimeKind.Local).AddTicks(1901), null, "-", "layui-icon layui-icon-console", false, false, "_component", new Guid("08dd5abf-0c54-4cf4-8d49-c1c11e39ce85"), "EditMenuPage", 1, "编辑菜单", 2, new DateTime(2025, 3, 4, 9, 51, 14, 862, DateTimeKind.Local).AddTicks(1902) },
                    { new Guid("08dd5abf-0c54-4e96-89b3-1163cce4939b"), "08dd5abf-0c47-41ec-8a9c-9faa13b0bc7f.08dd5abf-0c54-4e96-89b3-1163cce4939b", new DateTime(2025, 3, 4, 9, 51, 14, 862, DateTimeKind.Local).AddTicks(3209), null, "/SYS/User/Index", "layui-icon layui-icon-console", false, false, "_component", new Guid("08dd5abf-0c47-41ec-8a9c-9faa13b0bc7f"), "UserPage", 2, "用户", 1, new DateTime(2025, 3, 4, 9, 51, 14, 862, DateTimeKind.Local).AddTicks(3210) },
                    { new Guid("08dd5abf-0c54-4ee7-8afa-f6f7a2724ced"), "08dd5abf-0c47-41ec-8a9c-9faa13b0bc7f.08dd5abf-0c54-4e96-89b3-1163cce4939b.08dd5abf-0c54-4ee7-8afa-f6f7a2724ced", new DateTime(2025, 3, 4, 9, 51, 14, 862, DateTimeKind.Local).AddTicks(4506), null, "-", "layui-icon layui-icon-console", false, false, "_component", new Guid("08dd5abf-0c54-4e96-89b3-1163cce4939b"), "AddUserPage", 1, "添加用户", 2, new DateTime(2025, 3, 4, 9, 51, 14, 862, DateTimeKind.Local).AddTicks(4507) },
                    { new Guid("08dd5abf-0c54-4f42-809c-d45559304886"), "08dd5abf-0c47-41ec-8a9c-9faa13b0bc7f.08dd5abf-0c54-4e96-89b3-1163cce4939b.08dd5abf-0c54-4f42-809c-d45559304886", new DateTime(2025, 3, 4, 9, 51, 14, 862, DateTimeKind.Local).AddTicks(5953), null, "-", "layui-icon layui-icon-console", false, false, "_component", new Guid("08dd5abf-0c54-4e96-89b3-1163cce4939b"), "DelUserPage", 2, "删除用户", 2, new DateTime(2025, 3, 4, 9, 51, 14, 862, DateTimeKind.Local).AddTicks(5953) },
                    { new Guid("08dd5abf-0c54-4f96-8891-b9acc2cf1036"), "08dd5abf-0c47-41ec-8a9c-9faa13b0bc7f.08dd5abf-0c54-4e96-89b3-1163cce4939b.08dd5abf-0c54-4f96-8891-b9acc2cf1036", new DateTime(2025, 3, 4, 9, 51, 14, 862, DateTimeKind.Local).AddTicks(7304), null, "-", "layui-icon layui-icon-console", false, false, "_component", new Guid("08dd5abf-0c54-4e96-89b3-1163cce4939b"), "EditUserPage", 3, "编辑用户", 2, new DateTime(2025, 3, 4, 9, 51, 14, 862, DateTimeKind.Local).AddTicks(7305) },
                    { new Guid("08dd5abf-0c54-4feb-805a-fa90c52bb6bb"), "08dd5abf-0c47-41ec-8a9c-9faa13b0bc7f.08dd5abf-0c54-4e96-89b3-1163cce4939b.08dd5abf-0c54-4feb-805a-fa90c52bb6bb", new DateTime(2025, 3, 4, 9, 51, 14, 862, DateTimeKind.Local).AddTicks(8657), null, "-", "layui-icon layui-icon-console", false, false, "_component", new Guid("08dd5abf-0c54-4e96-89b3-1163cce4939b"), "AssignRoleUserPage", 4, "分配角色权限", 2, new DateTime(2025, 3, 4, 9, 51, 14, 862, DateTimeKind.Local).AddTicks(8657) },
                    { new Guid("08dd5abf-0c55-404e-863d-07cfe2fb1a87"), "08dd5abf-0c47-41ec-8a9c-9faa13b0bc7f.08dd5abf-0c55-404e-863d-07cfe2fb1a87", new DateTime(2025, 3, 4, 9, 51, 14, 863, DateTimeKind.Local).AddTicks(248), null, "/SYS/Role/Index", "layui-icon layui-icon-console", false, false, "_component", new Guid("08dd5abf-0c47-41ec-8a9c-9faa13b0bc7f"), "RolePage", 3, "角色", 1, new DateTime(2025, 3, 4, 9, 51, 14, 863, DateTimeKind.Local).AddTicks(249) },
                    { new Guid("08dd5abf-0c55-40a6-8374-30e3b2283185"), "08dd5abf-0c47-41ec-8a9c-9faa13b0bc7f.08dd5abf-0c55-404e-863d-07cfe2fb1a87.08dd5abf-0c55-40a6-8374-30e3b2283185", new DateTime(2025, 3, 4, 9, 51, 14, 863, DateTimeKind.Local).AddTicks(1652), null, "-", "layui-icon layui-icon-console", false, false, "_component", new Guid("08dd5abf-0c55-404e-863d-07cfe2fb1a87"), "AddRolePage", 1, "添加角色", 2, new DateTime(2025, 3, 4, 9, 51, 14, 863, DateTimeKind.Local).AddTicks(1652) },
                    { new Guid("08dd5abf-0c55-40fb-86cc-428c4f95b1b1"), "08dd5abf-0c47-41ec-8a9c-9faa13b0bc7f.08dd5abf-0c55-404e-863d-07cfe2fb1a87.08dd5abf-0c55-40fb-86cc-428c4f95b1b1", new DateTime(2025, 3, 4, 9, 51, 14, 863, DateTimeKind.Local).AddTicks(3015), null, "-", "layui-icon layui-icon-console", false, false, "_component", new Guid("08dd5abf-0c55-404e-863d-07cfe2fb1a87"), "DelRolePage", 2, "删除角色", 2, new DateTime(2025, 3, 4, 9, 51, 14, 863, DateTimeKind.Local).AddTicks(3015) },
                    { new Guid("08dd5abf-0c55-4157-8167-0659ce8f05dd"), "08dd5abf-0c47-41ec-8a9c-9faa13b0bc7f.08dd5abf-0c55-404e-863d-07cfe2fb1a87.08dd5abf-0c55-4157-8167-0659ce8f05dd", new DateTime(2025, 3, 4, 9, 51, 14, 863, DateTimeKind.Local).AddTicks(4482), null, "-", "layui-icon layui-icon-console", false, false, "_component", new Guid("08dd5abf-0c55-404e-863d-07cfe2fb1a87"), "EditRolePage", 3, "修改角色", 2, new DateTime(2025, 3, 4, 9, 51, 14, 863, DateTimeKind.Local).AddTicks(4483) },
                    { new Guid("08dd5abf-0c55-41b5-8130-30658113c691"), "08dd5abf-0c47-41ec-8a9c-9faa13b0bc7f.08dd5abf-0c55-404e-863d-07cfe2fb1a87.08dd5abf-0c55-41b5-8130-30658113c691", new DateTime(2025, 3, 4, 9, 51, 14, 863, DateTimeKind.Local).AddTicks(5985), null, "-", "layui-icon layui-icon-console", false, false, "_component", new Guid("08dd5abf-0c55-404e-863d-07cfe2fb1a87"), "AssignmentMenuRolePage", 4, "分配菜单权限", 2, new DateTime(2025, 3, 4, 9, 51, 14, 863, DateTimeKind.Local).AddTicks(5986) },
                    { new Guid("08dd5abf-0c55-420e-8184-40905468adc6"), "08dd5abf-0c55-420e-8184-40905468adc6", new DateTime(2025, 3, 4, 9, 51, 14, 863, DateTimeKind.Local).AddTicks(7409), null, "/", "layui-icon layui-icon-console", false, true, "_component", new Guid("00000000-0000-0000-0000-000000000000"), "PermPage", 4, "按钮权限-所有权限控制", 0, new DateTime(2025, 3, 4, 9, 51, 14, 863, DateTimeKind.Local).AddTicks(7410) },
                    { new Guid("08dd5abf-0c55-4289-8ac3-d3123deba20c"), "08dd5abf-0c55-420e-8184-40905468adc6.08dd5abf-0c55-4289-8ac3-d3123deba20c", new DateTime(2025, 3, 4, 9, 51, 14, 863, DateTimeKind.Local).AddTicks(9387), null, "-", "layui-icon layui-icon-console", false, false, "_component", new Guid("08dd5abf-0c55-420e-8184-40905468adc6"), "GeneralAddDataPerm", 1, "通用添加数据", 2, new DateTime(2025, 3, 4, 9, 51, 14, 863, DateTimeKind.Local).AddTicks(9387) },
                    { new Guid("08dd5abf-0c55-42e4-877a-d03f03f0ab45"), "08dd5abf-0c55-420e-8184-40905468adc6.08dd5abf-0c55-42e4-877a-d03f03f0ab45", new DateTime(2025, 3, 4, 9, 51, 14, 864, DateTimeKind.Local).AddTicks(839), null, "-", "layui-icon layui-icon-console", false, false, "_component", new Guid("08dd5abf-0c55-420e-8184-40905468adc6"), "GeneralDelDataPerm", 2, "通用删除数据", 2, new DateTime(2025, 3, 4, 9, 51, 14, 864, DateTimeKind.Local).AddTicks(840) },
                    { new Guid("08dd5abf-0c55-433d-8caf-ccaa87d9e547"), "08dd5abf-0c55-420e-8184-40905468adc6.08dd5abf-0c55-433d-8caf-ccaa87d9e547", new DateTime(2025, 3, 4, 9, 51, 14, 864, DateTimeKind.Local).AddTicks(2269), null, "-", "layui-icon layui-icon-console", false, false, "_component", new Guid("08dd5abf-0c55-420e-8184-40905468adc6"), "GeneralEditDataPerm", 3, "通用修改数据", 2, new DateTime(2025, 3, 4, 9, 51, 14, 864, DateTimeKind.Local).AddTicks(2269) },
                    { new Guid("08dd5abf-0c55-4395-8954-0c5c0fa4c2f1"), "08dd5abf-0c55-420e-8184-40905468adc6.08dd5abf-0c55-4395-8954-0c5c0fa4c2f1", new DateTime(2025, 3, 4, 9, 51, 14, 864, DateTimeKind.Local).AddTicks(3673), null, "-", "layui-icon layui-icon-console", false, false, "_component", new Guid("08dd5abf-0c55-420e-8184-40905468adc6"), "GeneralExportDataPerm", 3, "通用Excecl导出数据", 2, new DateTime(2025, 3, 4, 9, 51, 14, 864, DateTimeKind.Local).AddTicks(3673) },
                    { new Guid("08dd5abf-0c55-43f5-8253-9acc5133e510"), "08dd5abf-0c55-43f5-8253-9acc5133e510", new DateTime(2025, 3, 4, 9, 51, 14, 864, DateTimeKind.Local).AddTicks(5203), null, "/", "layui-icon layui-icon-console", false, false, "_component", new Guid("00000000-0000-0000-0000-000000000000"), "SystemMenu", 2, "常用实例方法", 0, new DateTime(2025, 3, 4, 9, 51, 14, 864, DateTimeKind.Local).AddTicks(5204) },
                    { new Guid("08dd5abf-0c55-4452-858d-559309f401e8"), "08dd5abf-0c55-43f5-8253-9acc5133e510.08dd5abf-0c55-4452-858d-559309f401e8", new DateTime(2025, 3, 4, 9, 51, 14, 864, DateTimeKind.Local).AddTicks(6693), null, "/Utils/Excel/Index", "layui-icon layui-icon-console", false, false, "_component", new Guid("08dd5abf-0c55-43f5-8253-9acc5133e510"), "ExcelInOutPage", 1, "Excel导入导出", 1, new DateTime(2025, 3, 4, 9, 51, 14, 864, DateTimeKind.Local).AddTicks(6694) },
                    { new Guid("08dd5abf-0c55-44ad-84e8-fd309e83f93c"), "08dd5abf-0c55-43f5-8253-9acc5133e510.08dd5abf-0c55-44ad-84e8-fd309e83f93c", new DateTime(2025, 3, 4, 9, 51, 14, 864, DateTimeKind.Local).AddTicks(8148), null, "/Utils/Form/Index", "layui-icon layui-icon-console", false, false, "_component", new Guid("08dd5abf-0c55-43f5-8253-9acc5133e510"), "FormDataPage", 2, "表单", 1, new DateTime(2025, 3, 4, 9, 51, 14, 864, DateTimeKind.Local).AddTicks(8149) },
                    { new Guid("08dd5abf-0c55-4507-89f6-fa6efbe8237c"), "08dd5abf-0c55-43f5-8253-9acc5133e510.08dd5abf-0c55-44ad-84e8-fd309e83f93c", new DateTime(2025, 3, 4, 9, 51, 14, 864, DateTimeKind.Local).AddTicks(9593), null, "/Utils/AutomaticCodeGeneration/Index", "layui-icon layui-icon-console", false, false, "_component", new Guid("08dd5abf-0c55-43f5-8253-9acc5133e510"), "AutomaticCodeGenerationPage", 3, "代码自动生成模板", 1, new DateTime(2025, 3, 4, 9, 51, 14, 864, DateTimeKind.Local).AddTicks(9594) }
                });

            migrationBuilder.InsertData(
                table: "SYSRole",
                columns: new[] { "Id", "CreateTime", "DeleteTime", "IsDeleted", "Name", "RoleCode", "UpdateTime" },
                values: new object[] { new Guid("08dd5abf-0c55-489b-803a-4b2d6f0d01a1"), new DateTime(2025, 3, 4, 9, 51, 14, 866, DateTimeKind.Local).AddTicks(4251), null, false, "管理员", "Administrator", new DateTime(2025, 3, 4, 9, 51, 14, 866, DateTimeKind.Local).AddTicks(4255) });

            migrationBuilder.InsertData(
                table: "SYSUser",
                columns: new[] { "Id", "Account", "Contact", "CreateTime", "DeleteTime", "Img", "IsDeleted", "IsEnable", "NickName", "Password", "Sex", "UpdateTime" },
                values: new object[] { new Guid("08dd5abf-0c55-4c94-81eb-4921b0fb8d17"), "Administrator", null, new DateTime(2025, 3, 4, 9, 51, 14, 868, DateTimeKind.Local).AddTicks(518), null, null, false, true, null, "670b14728ad9902aecba32e22fa4f6bd", 0, new DateTime(2025, 3, 4, 9, 51, 14, 868, DateTimeKind.Local).AddTicks(523) });

            migrationBuilder.CreateIndex(
                name: "IX_SYSRoleMenu_RolesId",
                table: "SYSRoleMenu",
                column: "RolesId");

            migrationBuilder.CreateIndex(
                name: "IX_SYSRoleUser_UsersId",
                table: "SYSRoleUser",
                column: "UsersId");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "AutomaticCodeGeneration");

            migrationBuilder.DropTable(
                name: "D_TiMu");

            migrationBuilder.DropTable(
                name: "FormData");

            migrationBuilder.DropTable(
                name: "SYSRoleMenu");

            migrationBuilder.DropTable(
                name: "SYSRoleUser");

            migrationBuilder.DropTable(
                name: "UtilExcel");

            migrationBuilder.DropTable(
                name: "SYSMenu");

            migrationBuilder.DropTable(
                name: "SYSRole");

            migrationBuilder.DropTable(
                name: "SYSUser");
        }
    }
}
